﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Tomahawk.Runtime.Timeline
{
    public class PlayModeEvent : Event
    {
        [XmlAttribute("Mode")]
        public SyncGroup.PlayMode mode = SyncGroup.PlayMode.Stop;

        public override void Execute(SyncGroup group, float time)
        {
            group.Mode = mode;
        }
    }

    public class JumpEvent : Event
    {
        [XmlAttribute("Target")]
        public float target = 0.0f;

        public override void Execute(SyncGroup group, float time)
        {
            group.Time = target;
        }
    }
}
